#include "stdafx.h"
#include "GameStateMgr.h"
#include "FBWaitState.h"
#include "Factory.h"
#include "DBDataMgr.h"
#include "ItemBagMgr.h"
#include "GameAnalyze.h"

CFBWaitState::CFBWaitState()
{
    Name = _T("CFBWaitState");
}

CFBWaitState::~CFBWaitState()
{
}


void CFBWaitState::Reset()
{
    CPlayer& Player = *IFactory::getSingleton().GetPlayer();
    if (Player.IsCasting() || Player.IsChannel()) return;
    Player.EndMoving();
}

void CFBWaitState::DoAction()
{
    CPlayer& Player = *IFactory::getSingleton().GetPlayer();
    if (Player.IsCasting() || Player.IsChannel()) return;
    Player.EndMoving();
}